package com.zhentao.service;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.schedule.dto.Task;

public interface TaskInfoService {
    /**
     * 添加任务
     * @param
     * @return
     */
    public long addTask(Task task) ;
    public boolean cancelTask(long taskId);
    public Task poll(int type,int priority);
}
